import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:ls_work/a_elder/models/upload_entity.dart';
import 'package:ls_work/model/customer_info_model.dart';

import '../net/response/elder_case_list_data.dart';

class ElderCaseListViewModel extends BaseListViewModel<ElderCaseListData>{
  dynamic customerElderId;
  ElderCaseListViewModel(BuildContext context,{this.customerElderId}) : super(context);

  var customerModel = CustomerInfoModel();
  @override
  Future<List<ElderCaseListData>> requestListData() async {
    return await customerModel.elderCaseList(customerElderId: customerElderId,page: page,rows: pageLength);
  }

  @override
  void onCreated() {
    super.onCreated();
    requestRefresh();
  }

}